package hotel.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import hotel.dao.UsedRoomDao;
import hotel.pojo.RoomDto;
import hotel.service.UseRoomService;
@Service
public class UseRoomSerciceImpl implements UseRoomService {
	
	@Resource
	UsedRoomDao usedRoomDao;
	
	public List<RoomDto> UseRomeCondition(String status) {
		if(status == null) {
			return null;
		}
		List<RoomDto> list = usedRoomDao.roomUse(status);
		System.out.println("status = "+status);
		for(int i=0;i<list.size();i++) {
			System.out.println("roomNum = "+list.get(i).getRnum());
			}
		return list;
	}

}
